# 指定基础镜像为最新版 nginx
FROM nginx:latest
# 将项目下的 ./configs 文件夹放置在镜像中的 /home/nginx/configs 文件夹
RUN rm /etc/nginx/conf.d/default.conf
COPY configs/nginx.conf /etc/nginx/nginx.conf
# ADD ./configs /home/nginx/configs
ADD ./dist /dist
# 运行 nginx
CMD ["nginx","-c","/etc/nginx/nginx.conf","-g", "daemon off;"]
# 镜像对外暴露 3000 端口
EXPOSE 80

